package com.example.administrator.yuejian_15.model;



import com.example.administrator.yuejian_15.bean.SuccessBean;
import com.example.administrator.yuejian_15.iface.SetUserInfoIface;
import com.example.administrator.yuejian_15.listener.TListener;
import com.example.administrator.yuejian_15.service.AllService;

import retrofit2.Call;
import retrofit2.Retrofit;

public class SetUserInfoModel extends RetrofitBaseModel implements SetUserInfoIface<SuccessBean> {

    private AllService allService;
    private Retrofit retrofit;
    public SetUserInfoModel(){
        retrofit=getRetrofit();
        allService=getAllService();
    }


    @Override
    public void setUserInfo(String uid, String phone, String email, TListener<SuccessBean> tListener) {
        Call<SuccessBean> call = allService.setUserInfo(uid,phone,email);
        callenqueue(call,tListener);

    }
}
